#include"searcher.hpp"
#include<iostream>
const std::string input="data/raw_html/raw.txt";
const std::string adver="data/advert/advert.txt";
int main()
{
    std::string query;
    std::string json_string;
    ns_searcher::Searcher*search=new ns_searcher::Searcher();
    search->InitSearcher(input);
    search->InitAdverSearcher(adver);
    while(true)
    {
        std::cout<<"Please Enter"<<std::endl;
        std::cin>>query;
        search->Search(query,&json_string);
        std::cout<<json_string<<std::endl;
    }
    return 0;
}